package com.hxkcloud.patient.adapter;

import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import com.hxkcloud.patient.fragments.DiscoverPatientFragment;

import java.util.List;

/**
 * Created by william_sun on 2016-07-09.
 * Description:发现页患者未管理和已管理adapter
 */
public class DiscoverPatientFragmentAdapter extends FragmentStatePagerAdapter {
    private List<DiscoverPatientFragment> fragments;

    public DiscoverPatientFragmentAdapter(FragmentManager fm, List<DiscoverPatientFragment> listFragments) {
        super(fm);
        this.fragments = listFragments;
    }

    @Override
    public DiscoverPatientFragment getItem(int position) {
        return fragments.get(position);
    }

    @Override
    public int getCount() {
        return fragments.size();
    }

}
